<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>下拉树</title>
    <link href="/themes/icon.css" rel="stylesheet" type="text/css" >
    <link href="/themes/default/easyui.css" rel="stylesheet" type="text/css" >
    <script src="/js/jquery.min.js"></script>
    <script src="/js/jquery.easyui.min.js"></script>
    <script src="/js/easyui-lang-zh_CN.js"></script>
</head>
<body>

     <!--multiple:true:多选,变为复选框,cascadeCheck:false:是否级联选择-->
    下拉树:<input id="cc" class="easyui-combotree" data-options="url:'/pages/tree/data.json',method:'get',multiple:true,cascadeCheck:false" />

    <input type="button" value="取值" onclick="alert($('#cc').combotree('getValues'));" />                         <!--单选树用:getValue,多选树用:getValues-->
    <input type="button" value="赋值" onclick="$('#cc').combotree('setValues',[3000,4000,5000,6000])" />    <!--单选树用:setValue,多选树用:setValues-->
    <input type="button" value="启用" onclick="$('#cc').combotree('enable')" />  
    <input type="button" value="禁用" onclick="$('#cc').combotree('disable')" />



</body>
</html>